/*******************************************************************************
 * Copyright 2010 MoBrite (A venture of Kinara Systems Private Limited)
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package com.mobrite.domaindroid.db;

import java.util.Date;

public class DomainObject {

	long rowId;
	String domain;
	String tld;
	int available;
	int favorite;
	long lastCheckedTimestamp;
	
	public DomainObject() {		
	}
	
	@Override
	public boolean equals(Object o) {
		return o instanceof DomainObject && ((DomainObject)o).rowId==rowId;
	}
	
	@Override
	public int hashCode() {
		return Long.valueOf(rowId).hashCode();
	}
	
	public DomainObject(String domain, String tld, int available,
			int favorite, long lastCheckedTimestamp) {
		super();
		this.domain = domain;
		this.tld = tld;
		this.available = available;
		this.favorite = favorite;
		this.lastCheckedTimestamp = lastCheckedTimestamp;
	}

	public long getRowId() {
		return rowId;
	}

	public void setRowId(long rowId) {
		this.rowId = rowId;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public String getTld() {
		return tld;
	}

	public void setTld(String tld) {
		this.tld = tld;
	}

	public int getAvailable() {
		return available;
	}

	public void setAvailable(int available) {
		this.available = available;
	}

	public int getFavorite() {
		return favorite;
	}

	public void setFavorite(int favorite) {
		this.favorite = favorite;
	}

	public long getLastCheckedTimestamp() {
		return lastCheckedTimestamp;
	}

	public void setLastCheckedTimestamp(long lastCheckedTimestamp) {
		this.lastCheckedTimestamp = lastCheckedTimestamp;
	}
	
	
}
